package example.chapter4;

import java.util.Date;
import java.util.Locale;

import com.opensymphony.xwork2.ActionSupport;

public class UseActionSupportAction extends ActionSupport{
	private Locale myLocale;
	private String message;
	
	public String execute() throws Exception{
		myLocale = getLocale();
		message = new Date() + " - " + getText("label.message");
		return SUCCESS;
	}

	public Locale getMyLocale() {
		return myLocale;
	}

	public void setMyLocale(Locale myLocale) {
		this.myLocale = myLocale;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
